{
	load_script('pinboard');
	load_mod('pager');

	var guangPageSegmentNum = 3;

	waterFall.init(function(){
		if(!scope.$lastSegment)
		{
			if(scope.$segment % guangPageSegmentNum != 0)
			{
				scope.$segment+=1;

				$.getJSON(
				'/riaapi/guang/aj_scrollnew.php?page='+scope.$currentPage
				+'&segment='+scope.$segment
				+'&color='+scope.$color
				+'&order='+scope.$order
				+'&maxPrice='+scope.$maxPrice
				+'&minPrice='+scope.$minPrice
				+'&filter='+scope.$filter
				,
				'',
				function(data){
					if(data.code == 'A00006')
					{
						if(data.data.lastSegment)
							scope.$lastSegment=true;
						waterFall.append(data.data.items);
					}
					
				});
			}
			else
			{
				$('#guang_pager').show();
			}
		}
	});

	
}